---
{{- $providerClusterConfiguration := .Values.cloudProviderZvirt.internal.providerClusterConfiguration | required "internal.providerClusterConfiguration is required" }}
apiVersion: v1
kind: Secret
metadata:
  namespace: d8-cloud-provider-zvirt
  {{- include "helm_lib_module_labels" (list . (dict "app" "zvirt-cloud-controller")) | nindent 2 }}
  name: zvirt-credentials
data:
  username: {{ $providerClusterConfiguration.provider.username | toString | b64enc | quote }}
  password: {{ $providerClusterConfiguration.provider.password | toString | b64enc | quote }}
  server: {{ $providerClusterConfiguration.provider.server | b64enc | quote }}
  insecure: {{ $providerClusterConfiguration.provider.insecure | toString | b64enc | quote }}
  caBundle: {{ $providerClusterConfiguration.provider.caBundle | quote }}
